#include <stdio.h>
#include <stdlib.h>
#include <math.h>

struct point
{
    double x, y;
};
typedef struct point POINT;

struct circle
{
    double x, y, r;
};
typedef struct circle CIRCLE;

int in_circle(POINT p, CIRCLE c)
{
    double dist2 = pow(p.x - c.x, 2.0) + pow(p.y - c.y, 2.0);
    double r2 = c.r * c.r;
    if (dist2 > r2)
        return 0;
    else if (dist2 == r2)
        return 1;
    else /* dist2 < r2 */ 
        return 2;
}

int main()
{
    POINT p;
    CIRCLE c;
    while (scanf("%lf%lf%lf%lf%lf", &p.x, &p.y, &c.x, &c.y, &c.r) == 5)
    {
        printf("%d\n", in_circle(p, c));
    }
    return 0;
}

